package designPattern.behavioralPattern.chainOfResponsibility.每个处理者都要处理;

/**
 * @author wei.zhao
 * @description:
 * @date 2021年12月17日 11:25
 */
public class Test {

    public static void main(String[] args) {
        Chain chain = new Chain();
        chain.addLast(new ConcreteHandler1());
        chain.addLast(new ConcreteHandler2());
        // 发起请求
        chain.request("火车呜呜呜~~");
    }

}
